﻿using Api.share.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Api.DataAccess.Permission;

/// <summary>
/// sys_menu:
/// </summary>
public class PermissionEntity : EntityObjectBase
{

    /// <summary>
    ///父级菜单ID
    /// </summary>
    public int? ParentId { get; set; }

    /// <summary>
    ///类型
    /// </summary>
    public required PermissionType Type { get; set; }

    /// <summary>
    ///菜单名称
    /// </summary>
    public required string Name { get; set; }

    /// <summary>
    ///菜单状态
    /// Default:
    /// Nullable:True
    /// </summary>
    public required PermissionStatus Status { get; set; }



    /// <summary>
    ///排序
    /// Default:0
    /// </summary>
    public required int Sort { get; set; }

    /// <summary>
    ///图标
    /// Default:0
    /// Nullable:False
    /// </summary>
    public required string Icon { get; set; }

}